#include "f_5x8.h"

/*
 * A 5x8 pixel font.  The bits are read across from top left to top right, then down
 * to the next line.  Each character is represented by five 8bit unsigned integers.
 */
static uint8_t font_data_5x8[] PROGMEM = {
	0x74, 0x63, 0x18, 0xc6, 0x2e,	//0				(0x00)
	0x23, 0x28, 0x42, 0x10, 0x9f,	//1
	0x74, 0x42, 0x26, 0x42, 0x1f,	//2
	0x74, 0x42, 0x60, 0x86, 0x2e,	//3
	0x19, 0x53, 0x1f, 0x84, 0x21,	//4
	0xfc, 0x21, 0xf0, 0x86, 0x2e,	//5
	0x3a, 0x21, 0xe8, 0xc6, 0x2e,	//6
	0xfc, 0x42, 0x22, 0x10, 0x84,	//7
	0x74, 0x62, 0xe8, 0xc6, 0x2e,	//8
	0x74, 0x62, 0xf0, 0x84, 0x4c,	//9				(0x09)
	0x00, 0x20, 0x00, 0x40, 0x00,	//:				(0x0A)
	0x45, 0x39, 0x40, 0x00, 0x00,	//A (AM)		(0x0B)
	0x00, 0x00, 0x0c, 0x53, 0x10,	//P (PM)		(0x0C)
	0x00, 0x01, 0xc0, 0x00, 0x00	//-				(0x0D)
};

static uint8_t font_widths_5x8[] PROGMEM = {
	0xFF,
	0xFF,
	0xFF,
	0xFF,
	0xFF,
	0xFF,
	0xFF,
	0xFF,
	0xFF,
	0xFF,
	0x01,
	0x03,
	0x03,
	0x03
};

uint8_t codepage_5x8[] PROGMEM = {
//	0    1    2    3    4    5    6    7    8    9    A    B    C    D    E    F
	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, //0x00-0x0F
	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, //0x10-0x1F
	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x0D,0xFF,0xFF, //0x20-0x2F
	0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0xFF,0xFF,0xFF,0xFF,0xFF, //0x30-0x3F
	0xFF,0x0B,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, //0x40-0x4F
	0x0C,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, //0x50-0x5F
	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, //0x60-0x6F
	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF  //0x70-0x7F
};

font_t font_5x8 = {
	font_data_5x8,
	font_widths_5x8,
	codepage_5x8,
	5,
	8,
	FONT_VARIABLE_WIDTH
};
